import { request } from '_utils/request'

// 请求商品列表
const fetchItem = (params = {}) => request.get('/itemList', { params })
// 添加商品
const addItem = (params = {}) => request.post('/additem', params)
// 修改商品
const setItemDetail = (params = {}) => request.post('/itemupdate', params)
// 获取商品详情
const fetchItemDetail = (params = {}) => request.get('/itemdetail', { params })
// 删除商品
const delItem = (params = {}) => request.get('/delitem', { params })
// 登录
const login = (params = {}) => request.post('/login', params)
export {
 fetchItem,
 addItem,
 fetchItemDetail,
 setItemDetail,
 delItem,
 login
}
